<template>
	<view>
		<view class="check-item" v-for="item in list" :key="item.id">
			<view class="top">
				<text>{{item['材料名称']}}</text>
			</view>
			<view class="center">
				<text>耗材编码：</text>
				<text style="color: #888">{{item['材料类型']}}</text>
			</view>
			<view class="bottom">
				<text>耗材类型：</text>
				<text style="color: #888;">{{'负责人电话'}}</text>
			</view>
			<view class="bottom">
				<text>品牌：</text>
				<text style="color: #888;">{{item['品牌']}}</text>
			</view>
			<view class="delete">删除</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		props: {
			list: {
				type: Array,
				default: () => []
			}
		}
		
	}
</script>

<style lang="scss">
	.check-item {
		position: relative;
		overflow: hidden;
		border-radius: 10rpx;
		height: 300rpx;
		margin-left: 20rpx;
		width: 710rpx;
		background: #fff;
		// background-color: pink;
		padding: 20rpx 35rpx 22rpx 35rpx;
		font-size: 28rpx;
		line-height: 48rpx;
		margin-bottom: 20rpx;
		border-bottom: 2rpx solid #F8F8F8;
		box-shadow: 0px 6rpx 20rpx 0px rgba(211, 211, 211, 0.5);
		.top {
			margin-bottom: 20rpx;
			display: flex;
			font-size: 32rpx;
			align-items: center;
			&:before {
				display: inline-block;
				content: "";
				width: 6rpx;
				height: 32rpx;
				background-color: #3080FB;
				transform: translateX(-10rpx);
			}
		}
		.bottom {
			width: 20em;
			overflow: hidden;
			white-space: nowrap;
			text-overflow: ellipsis;
		}
		.delete {
			position: absolute;
			font-size: 24rpx;
			text-align: center;
			line-height: 40rpx;
			width: 100rpx;
			height: 40rpx;
			border: 2rpx solid red;
			color: red;
			right: 30rpx;
			bottom: 20rpx;
		}
	}
</style>
